package com.isoft.systemprovidor.service;

import com.isoft.systemprovidor.dao.SysUserDao;
import com.isoft.systemprovidor.entity.SysUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserService {
    @Autowired
    SysUserDao sysUserDao;
    /*无安全框架登录测试*/
    public SysUser loginTest(@Param("username") String username , @Param("password") String password){
        return sysUserDao.loginTest(username ,password);
    }
    /*获取所有用户信息*/
    public List<SysUser> getAllSysUser(){
        return sysUserDao.getAllSysUser();
    }
    /*根据ID获取用户信息*/
    public SysUser getById(Integer id){
        return sysUserDao.getById(id);
    }
}
